package com.junmeng.demo.libtopview

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.junmeng.demo.libtopview.SimpleFloatingViewFactory.Companion.VIEW_TYPE_SIMPLE_FLOATING
import com.junmeng.demo.libtopview.databinding.LayoutActivityMainBinding
import com.junmeng.lib.ui.topview.core.WindowTopViewManager


class MainActivity : AppCompatActivity() {

    lateinit var mBinding: LayoutActivityMainBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mBinding = LayoutActivityMainBinding.inflate(layoutInflater)
        setContentView(mBinding.root)
        mBinding.btnFloating.setOnClickListener {
            startActivity(Intent(this, FloatingActivity::class.java))
        }
        mBinding.btnDialog.setOnClickListener {
            startActivity(Intent(this, DialogActivity::class.java))
        }

    }
}